package com.ljx.rabbit.domain.dto;

import lombok.Data;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

@Data
public class GoodsPageDTO implements Serializable {
    private Long categoryId;
    private Long page;
    private Long pageSize;
    private String sortField;
    public String covert(String x){
        Map<String,String> map=new HashMap<>();
        map.put("publishTime","publish_time");
        map.put("orderNum","sales_count");
        map.put("evaluateNum","comment_count");
        return map.get(x);
    }
}
